package invalidosgibusinesscomponentdependency;

import invalidosgibusinesscomponentdependency.InvalidOSGiBusinessComponentDependencyMatch;
import org.eclipse.viatra2.emf.incquery.runtime.api.IMatchProcessor;
import sysmodel.BusinessComponent;
import sysmodel.OSGiBusinessComponent;

/**
 * A match processor tailored for the InvalidOSGiBusinessComponentDependency pattern.
 * 
 * Clients should derive an (anonymous) class that implements the abstract process().
 * 
 */
public abstract class InvalidOSGiBusinessComponentDependencyProcessor implements IMatchProcessor<InvalidOSGiBusinessComponentDependencyMatch> {
  /**
   * Defines the action that is to be executed on each match.
   * @param pOsgiComponent the value of pattern parameter osgiComponent in the currently processed match 
   * @param pOtherComponent the value of pattern parameter otherComponent in the currently processed match 
   * 
   */
  public abstract void process(final OSGiBusinessComponent osgiComponent, final BusinessComponent otherComponent);
  
  @Override
  public void process(final InvalidOSGiBusinessComponentDependencyMatch match) {
    process(match.getOsgiComponent(), match.getOtherComponent());  				
    
  }
}
